class Phone:
    imei = None  # 序列号
    producer = "PingGuo"  # 厂商

    def call_by_5g(self):
        print("使用5g通话")

# 定义子类，复写父类成员
class MyPhone(Phone):
    producer = "huawei"
    def call_by_5g(self):

        print("开启cpu单核模式，确保通话省电")

        # 方式一 print("使用5g通话")
        # print(f"父类厂商是：{Phone.producer}")
        # Phone.call_by_5g(self)
        # 方式二
        print(f"父类厂商是：{super().producer}")
        super().call_by_5g()
        print("关闭cpu性能模式，确保性能")
phone = MyPhone()
phone.call_by_5g()
print(phone.producer)